<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>wpa_supplicant</Name>
        <Homepage>http://hostap.epitest.fi/wpa_supplicant/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>BSD</License>
        <IsA>service</IsA>
        <Summary>IEEE 802.1X/WPA supplicant for secure wireless transfers</Summary>
        <Description>wpa_supplicant is a WPA supplicant with support for WPA and WPA2.</Description>
        <Archive sha1sum="8189704e257c3e9f8300c49dc6e49a381b1d6299" type="targz">http://hostap.epitest.fi/releases/wpa_supplicant-2.6.tar.gz</Archive>
        <AdditionalFiles>
            <AdditionalFile target="wpa_supplicant/.config">wpa_supplicant.config</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>libnl-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>readline-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">ubuntu/01_use_pkg-config_for_pcsc-lite_module.patch</Patch>
            <!--<Patch level="1">wpa_supplicant-1.0-generate-libeap-peer.patch</Patch>-->
            <Patch level="1">wpa_supplicant-1.0-dbus-path-fix.patch</Patch>
            <!--Patch level="1">wpa_supplicant-1.0-do-not-call-dbus-functions-with-NULL-path.patch</Patch-->
            <Patch level="1">mandriva/wpa_supplicant-0.6.3-WEP232.patch</Patch>
            <Patch level="1">fedora/wpa_supplicant-openssl-more-algs.patch</Patch>
            <Patch level="1">fedora/wpa_supplicant-flush-debug-output.patch</Patch>
            <!--<Patch level="1">fedora/wpa_supplicant-squelch-driver-disconnect-spam.patch</Patch>-->
            <!--<Patch level="1">fedora/wpa_supplicant-dbus-service-file-args.patch</Patch>-->
            <Patch level="1">fedora/wpa_supplicant-assoc-timeout.patch</Patch>
            <!--<Patch level="1">fedora/wpa_supplicant-quiet-scan-results-message.patch</Patch>-->

            <!--<Patch>suse/wpa_supplicant-driver-wext-debug.patch</Patch>-->
            <Patch>suse/wpa_supplicant-errormsg.patch</Patch>

            <!-- Add 3 patches from git://w1.fi/srv/git/hostap-07.git -->
            <!--<Patch level="1">0001-AP-Verify-that-HT40-secondary-channel-is-supported.patch</Patch>-->
            <!--<Patch level="1">0002-nl80211-Set-cipher-suites-when-using-user-space-SME.patch</Patch>-->
            <!--<Patch level="1">0003-dbus-Emit-property-changed-events-when-adding-removi.patch</Patch>-->
        </Patches>
    </Source>

    <Package>
        <Name>wpa_supplicant</Name>
        <RuntimeDependencies>
            <Dependency>libnl</Dependency>
            <Dependency>dbus</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>readline</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/etc/dbus-1</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/dbus-1/system-services</Path>
            <Path fileType="data">/run</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0600" target="/etc/wpa_supplicant.conf">wpa_supplicant.conf</AdditionalFile>
            <!-- This is the fedora one
            <AdditionalFile owner="root" permission="0600" target="/etc/wpa_supplicant.conf">wpa_supplicant.conf.fedora</AdditionalFile>
            -->
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/wpa_supplicant">wpa_supplicant.confd</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/logrotate.d/wpa_supplicant">wpa_supplicant.logrotate</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/python2.7/site-packages/wpa_supplicant.py">wpa_supplicant.py</AdditionalFile>
        </AdditionalFiles>
        <!-- This service is not started by default since NM starts it automatically. Keep service for those not using NM and start wpa-supp service manually -->
        <Provides>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-17</Date>
            <Version>2.6</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-07-15</Date>
            <Version>2.4</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
